package com.dailyblue.java.reflection;

public class Person {

    private Integer id;
    public String name;
    protected Character gender;
    Integer age;

    public Person() {
    }

    public Person(Integer id) {
        this.id = id;
    }

    public Person(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Person(Integer id, String name, Character gender, Integer age) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.age = age;
    }

    public void a() {
        System.out.println("Person`a");
    }

    public int b() {
        System.out.println("Person`b");
        return 1;
    }

    private void c(int a) {
        System.out.println("Person`c:" + a);
    }

    public void d(int a, String b) {
        System.out.println("Person`d:a:" + a + ",b:" + b);
    }

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender=" + gender +
                ", age=" + age +
                '}';
    }
}
